import { Entity, Column, PrimaryGeneratedColumn, ManyToOne, BaseEntity, OneToMany, JoinColumn } from 'typeorm';
import { VideoTag } from '../videoTag/videoTag.entity';

@Entity('tags')
export class Tags extends BaseEntity {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({ name: 'tag' })
  tag: string;

  @Column({ name: 'parentId' })
  parentId: number;

  @Column({ name: 'user_id' })
  user_id: number;

  @Column({ name: 'create_time' })
  create_time: Date;

}
